<?php
/**
 * Created by PhpStorm.
 * User: sqq
 * Date: 2018/08/20
 * Time: 下午16:06
 * Description：每天晚上定时清空优惠券推送表
 */
$service_path = __DIR__ . "/../../../api/";
ob_start();
require_once($service_path . "public/index.php");
ob_end_clean();

echo date('Y-m-d H:i:s',time())." coupon push del cancel started \n";

$coupon = DB::table('coupon_push')->delete();

echo date('Y-m-d H:i:s',time())." coupon push del retry stoped \n";